package book;

public class E8_1 {
    public static void main(String[] args) {
        String hello="你好";
        String testOne="你"+"好";

        int address=System.identityHashCode("你好");
        System.out.printf("\"你好\"的引用:%x\n",address);
        address=System.identityHashCode(hello);
        System.out.printf("hello的引用:%x\n",address);
        address=System.identityHashCode(testOne);
        System.out.printf("tesOne的引用:%x\n",address);

        String you="你";
        String hi="好";
        String testTwo=you+hi;
        address=System.identityHashCode(testTwo);
        System.out.printf("testTwo的引用为:%x",address);
    }
}
